package org.chen.spring.cloud.finchley.hystrix.web;

import org.chen.spring.cloud.finchley.hystrix.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chensj
 * @date 2020-02-08 13:20
 */
@RestController
public class UserController {

  @Autowired private UserService userService;

  @GetMapping(value = "getUser")
  public String getUser(String username) throws Exception {
    return userService.getUser(username);
  }
}
